/**
 * @(#) ApprovalLineVO.as
 *
 * @date		2010. 09. 08.
 * @version		1.0
 * @author		Shin, Yunwoo
 * @client		Service Ace & Service Top 
 * @description	결재라인 Value Object (결재함)
 * 				approval.ApprovalLineVO에서 복사..
 */

package com.skt.common_hr.approval_sac.model.vo
{
	import com.wcl.utils.StringUtil;
	
	import mx.formatters.DateFormatter;
	
	[Bindable]
	public class ApprovalLineVO
	{
		public var GWARELEV:String;
		public var WPERNR:String = "";
		public var ENAME:String = "";
		public var ORGTX:String = "";
		public var PLANST:String;
		public var GWARE_INDATE:Date;
		public var GWARE_INZEIT:Date;
		public var WSTATUS:String;
		public var WSTATUS_TX:String;
		
		public function get GWARE_INDATE_F():String{
			var format:DateFormatter = new DateFormatter();
			format.formatString = "YY-MM-DD";
			var format2:DateFormatter = new DateFormatter();
			format2.formatString = "JJ:NN";
			if(StringUtil.trim(format.format(GWARE_INDATE)) == "") {
				return "";
			}
			return format.format(GWARE_INDATE) + " " +format2.format(GWARE_INZEIT);
		}
		public function set GWARE_INDATE_F(s:String):void {
			
		}
		public function clone():ApprovalLineVO
		{
			var vo:ApprovalLineVO = new ApprovalLineVO;
			vo.GWARELEV 	= this.GWARELEV;
			vo.WPERNR 		= this.WPERNR;
			vo.ENAME 		= this.ENAME;
			vo.ORGTX 		= this.ORGTX;
			vo.PLANST 		= this.PLANST;
			return vo;
		}
	}
}